package com.briup.cloud.framework.logging.web.vm;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author guomiao
 * @Date 2022/3/4 10:32
 */
@ApiModel(value = "日志模型")
@Data
public class LogParam {
    private int pageNum = 1;
    private int pageSize = 10;
    @ApiModelProperty(value = "请求开始时间(yyyy-MM-dd HH:mm:ss)")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date begin;
    @ApiModelProperty(value = "请求结束时间(yyyy-MM-dd HH:mm:ss)")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date end;
    @ApiModelProperty(value = "模块")
    private String modular;
    @ApiModelProperty(value = "日志类型",allowableValues = "1,2")
    private Byte logType;
    @ApiModelProperty(value = "请求方式",allowableValues = "GET,POST,DELETE,UPDATE")
    private String requestMethod;
    @ApiModelProperty(value = "最大响应时间")
    private Long maxUsingTime;
    @ApiModelProperty(value = "最少响应时间")
    private Long minUsingTime;
    @ApiModelProperty(value = "请求url")
    private String requestUri;
    @ApiModelProperty(value = "原始请求ip")
    private String originalIp;
}
